<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>登录帐号</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-2094532630">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-2094532630";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("login.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建登录帐号"
  			,"inport":"导入登录帐号"
  			,"update":"修改登录帐号"
  			,"detail":"登录帐号详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#loginForm").form({
		"":function(){}
		,"srvLogin.slId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvLogin.slUsername":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "用户名不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "用户名最大长度为32个字符";
			if(jQuery.trim(el.value)!=""){
				var protocol = $.getAjax("login.query.do",{exists:true,slUsername:el.value});
				if(protocol.success && protocol.data.list && protocol.data.list.length>0){
					if(!$("#slId").val() || protocol.data.list[0].key!=$("#slId").val())
						return "用户名已存在";						
				}
			}
		}
		,"srvLogin.slPassword":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "密码不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "密码最大长度为32个字符";
		}
		,"srvLogin.slRealName":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "真实姓名不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "真实姓名最大长度为32个字符";
		}
		,"srvLogin.slNickName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "昵称最大长度为32个字符";
		}
		,"srvLogin.slPortrait":function(el){
		}
		,"srvLogin.slSignature":function(el){
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "个性签名最大长度为128个字符";
		}
		,"srvLogin.slWxOpenid":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "微信ID最大长度为32个字符";
		}
		,"srvLogin.slCurrUser":function(el){
		}
		,"srvLogin.slAddTime":function(el){
		}
		,"srvLogin.slLastTime":function(el){
		}
		,"srvLogin.slLastIp":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "最后登录IP最大长度为32个字符";
		}
		,"srvLogin.slStatus":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="SrvLogin" id="loginForm" name="loginForm" target="jsoniframe" action="login.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写登录帐号相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("slId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slId"))))&&true)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slId"))))}}
	{{lz.set("slId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$slId}}
	<dl lz:if="{{slId_editable||slId_readonly}}" class="slId hidden " major  ref="slId">
		<dt>编　　号:</dt>
		<dd lz:if="{{slId_editable}}" input="hidden">
			<lz:block lz:if="{{srvLogin$slId}}">
				{{srvLogin$slId}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slId}}">
			<input type="hidden" value="{{lz.htm(srvLogin.slId)}}" name="srvLogin.slId" id="slId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slId">{{srvLogin.slId}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slId$||srvLogin.slId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slId}}
	{{lz.set("slUsername_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slUsername"))))&&true)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slUsername"))))}}
	{{lz.set("slUsername_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$slUsername}}
	<dl lz:if="{{slUsername_editable||slUsername_readonly}}" class="slUsername  " major  ref="slUsername">
		<dt>用 户 名:</dt>
		<dd lz:if="{{slUsername_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slUsername}}">
				{{srvLogin$slUsername}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slUsername}}">
		 	<input type="text" class="input narrow"   name="srvLogin.slUsername" id="slUsername"  value="{{lz.htm(srvLogin.slUsername)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入登录帐号的用户名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slUsername_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slUsername">{{srvLogin.slUsername}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slUsername$||srvLogin.slUsername)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slUsername}}
	{{lz.set("slPassword_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slPassword"))))&&true)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slPassword"))))}}
	{{lz.set("slPassword_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slPassword}}
	<dl lz:if="{{slPassword_editable||slPassword_readonly}}" class="slPassword  " major  ref="slPassword">
		<dt>密　　码:</dt>
		<dd lz:if="{{slPassword_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slPassword}}">
				{{srvLogin$slPassword}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slPassword}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLogin.slPassword" id="slPassword"  value="{{lz.htm(srvLogin.slPassword)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入登录帐号的密码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slPassword_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slPassword">{{srvLogin.slPassword}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slPassword$||srvLogin.slPassword)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slPassword}}
	{{lz.set("slRealName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slRealName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slRealName"))))}}
	{{lz.set("slRealName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slRealName}}
	<dl lz:if="{{slRealName_editable||slRealName_readonly}}" class="slRealName  " major  ref="slRealName">
		<dt>真实姓名:</dt>
		<dd lz:if="{{slRealName_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slRealName}}">
				{{srvLogin$slRealName}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slRealName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLogin.slRealName" id="slRealName"  value="{{lz.htm(srvLogin.slRealName)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入登录帐号的真实姓名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slRealName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slRealName">{{srvLogin.slRealName}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slRealName$||srvLogin.slRealName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slRealName}}
	{{lz.set("slNickName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slNickName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slNickName"))))}}
	{{lz.set("slNickName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slNickName}}
	<dl lz:if="{{slNickName_editable||slNickName_readonly}}" class="ribs slNickName  " major  ref="slNickName">
		<dt>昵　　称:</dt>
		<dd lz:if="{{slNickName_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slNickName}}">
				{{srvLogin$slNickName}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slNickName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLogin.slNickName" id="slNickName"  value="{{lz.htm(srvLogin.slNickName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入登录帐号的昵称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slNickName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slNickName">{{srvLogin.slNickName}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slNickName$||srvLogin.slNickName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slNickName}}
	{{lz.set("slPortrait_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slPortrait"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slPortrait"))))}}
	{{lz.set("slPortrait_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slPortrait}}
	<dl lz:if="{{slPortrait_editable||slPortrait_readonly}}" class="ribs slPortrait   wider" minor  ref="slPortrait">
		<dt>头　　像:</dt>
		<dd lz:if="{{slPortrait_editable}}" input="image">
			<lz:block lz:if="{{srvLogin$slPortrait}}">
				{{srvLogin$slPortrait}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slPortrait}}">
		    <input type="text" class="input" maxlength="128" size="32" name="srvLogin.slPortrait" id="slPortrait"  value="{{lz.htm(srvLogin.slPortrait)}}"/>
			<button type="button" onclick="$.upload({type:'img',callback:function(url){if(url)$('#slPortrait').val(url)}})" class="button">设置图片</button>
			<button type="button" onclick="$('#slPortrait').val('')" class="button">删除图片</button>
			<button type="button" onclick="$.thumb({url:$('#slPortrait').val()})" class="button">查看图片</button>
	 	 </lz:block>
	 	 
	 	 <em>请上传登录帐号的头像</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slPortrait_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="slPortrait">{{srvLogin.slPortrait}}</textarea>
		 		<span>
		 	<img lz:if="{{srvLogin.slPortrait}}" onclick="$.thumb({url:this.src})" style="margin:10px;padding:1px;border:1px solid;" onload="if(this.width>this.height){this.width=96}else{this.height=96}" src="{{lz.htm(srvLogin.slPortrait)}}"/>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slPortrait}}
	{{lz.set("slSignature_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slSignature"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slSignature"))))}}
	{{lz.set("slSignature_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slSignature}}
	<dl lz:if="{{slSignature_editable||slSignature_readonly}}" class="ribs slSignature   wider" minor  ref="slSignature">
		<dt>个性签名:</dt>
		<dd lz:if="{{slSignature_editable}}" input="textarea">
			<lz:block lz:if="{{srvLogin$slSignature}}">
				{{srvLogin$slSignature}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slSignature}}">
		 	<textarea class="input wide"  id="slSignature" name="srvLogin.slSignature" rows="5">{{srvLogin.slSignature}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入登录帐号的个性签名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slSignature_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(srvLogin.slSignature$||srvLogin.slSignature)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slSignature}}
	{{lz.set("slWxOpenid_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slWxOpenid"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slWxOpenid"))))}}
	{{lz.set("slWxOpenid_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slWxOpenid}}
	<dl lz:if="{{slWxOpenid_editable||slWxOpenid_readonly}}" class="ribs slWxOpenid  " major  ref="slWxOpenid">
		<dt>微信ID:</dt>
		<dd lz:if="{{slWxOpenid_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slWxOpenid}}">
				{{srvLogin$slWxOpenid}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slWxOpenid}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLogin.slWxOpenid" id="slWxOpenid"  value="{{lz.htm(srvLogin.slWxOpenid)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入登录帐号的微信ID</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slWxOpenid_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slWxOpenid">{{srvLogin.slWxOpenid}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slWxOpenid$||srvLogin.slWxOpenid)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slWxOpenid}}
	{{lz.set("slCurrUser_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slCurrUser"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slCurrUser"))))}}
	{{lz.set("slCurrUser_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slCurrUser}}
	<dl lz:if="{{slCurrUser_editable||slCurrUser_readonly}}" class="slCurrUser  " major  ref="slCurrUser">
		<dt>当前用户:</dt>
		<dd lz:if="{{slCurrUser_editable}}" input="combox">
			<lz:block lz:if="{{srvLogin$slCurrUser}}">
				{{srvLogin$slCurrUser}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slCurrUser}}">
		 			<select class="combox narrow" action="/admin/permissions/user.query.do?size=255" id="slCurrUser" name="srvLogin.slCurrUser">
		 				<option selected="selected" value="{{lz.htm(srvLogin.slCurrUser)}}">{{lz.htm(srvLogin.slCurrUser$||srvLogin.slCurrUser)}}</option>
		 			</select>
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#slCurrUser').val())==''){return;};window.href('/admin/permissions/user.detail.do?key='+$('#slCurrUser').val(),{ctrl:{editable:false}})"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slCurrUser_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slCurrUser">{{srvLogin.slCurrUser}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/permissions/user.details.html?key=srvLogin.slCurrUser}')">
			 {{lz.html(srvLogin.slCurrUser$||srvLogin.slCurrUser)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slCurrUser}}
	{{lz.set("slAddTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slAddTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slAddTime"))))}}
	{{lz.set("slAddTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slAddTime}}
	<dl lz:if="{{slAddTime_editable||slAddTime_readonly}}" class="slAddTime  " major  ref="slAddTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{slAddTime_editable}}" input="date">
			<lz:block lz:if="{{srvLogin$slAddTime}}">
				{{srvLogin$slAddTime}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slAddTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="srvLogin.slAddTime" id="slAddTime"  value="{{srvLogin.slAddTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择登录帐号的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slAddTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slAddTime">{{srvLogin.slAddTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slAddTime$||srvLogin.slAddTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slAddTime}}
	{{lz.set("slLastTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slLastTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slLastTime"))))}}
	{{lz.set("slLastTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slLastTime}}
	<dl lz:if="{{slLastTime_editable||slLastTime_readonly}}" class="slLastTime  " major  ref="slLastTime">
		<dt>最后登录时间:</dt>
		<dd lz:if="{{slLastTime_editable}}" input="date">
			<lz:block lz:if="{{srvLogin$slLastTime}}">
				{{srvLogin$slLastTime}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slLastTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="srvLogin.slLastTime" id="slLastTime"  value="{{srvLogin.slLastTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择登录帐号的最后登录时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slLastTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slLastTime">{{srvLogin.slLastTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slLastTime$||srvLogin.slLastTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slLastTime}}
	{{lz.set("slLastIp_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slLastIp"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slLastIp"))))}}
	{{lz.set("slLastIp_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slLastIp}}
	<dl lz:if="{{slLastIp_editable||slLastIp_readonly}}" class="slLastIp  " major  ref="slLastIp">
		<dt>最后登录IP:</dt>
		<dd lz:if="{{slLastIp_editable}}" input="text">
			<lz:block lz:if="{{srvLogin$slLastIp}}">
				{{srvLogin$slLastIp}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slLastIp}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLogin.slLastIp" id="slLastIp"  value="{{lz.htm(srvLogin.slLastIp)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入登录帐号的最后登录IP</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slLastIp_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slLastIp">{{srvLogin.slLastIp}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slLastIp$||srvLogin.slLastIp)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slLastIp}}
	{{lz.set("slStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slStatus"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slStatus"))))}}
	{{lz.set("slStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slStatus}}
	<dl lz:if="{{slStatus_editable||slStatus_readonly}}" class="slStatus  " major  ref="slStatus">
		<dt>状　　态:</dt>
		<dd lz:if="{{slStatus_editable}}" input="select">
			<lz:block lz:if="{{srvLogin$slStatus}}">
				{{srvLogin$slStatus}}
			</lz:block>
			<lz:block lz:if="{{!srvLogin$slStatus}}">
		 	<select class="narrow" id="slStatus" name="srvLogin.slStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{srvLogin.slStatus=="1"?"selected":""}}'>有效</option>
				<option value="0" selected='{{srvLogin.slStatus=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择登录帐号的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slStatus">{{srvLogin.slStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLogin.slStatus$||srvLogin.slStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slStatus}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{srvLogin.slId}}" name="srvLogin.slId" id="slId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/permissions/login.edit.html?edittype=update&id={{srvLogin.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteLogin('{{srvLogin.id}}','{{srvLogin.slUsername}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/permissions/login.edit.html",document.title,"/admin//images/icons/2008112220121595877808.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/permissions/login.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除登录帐号
	**/
	function deleteLogin(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除登录帐号",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/permissions/login.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>